package Service;

import java.util.List;

import ModelBean.NodeCategory;
import ModelBean.RegisterBean;
import ModelBean.Tag;
import POJO.Cart;
import POJO.CartDetail;
import POJO.Category;
import POJO.Product;
import POJO.ProductDetail;
import POJO.Type;
import POJO.TypeDetail;


public interface HomeService {
	NodeCategory createTreeMenu();

	List<ProductDetail> getProductDiscount(int count);
	List<ProductDetail> getProductNew(int count);
	ProductDetail getProductById(int id);
	Long getCountInStore(int id);
	List<Type> getTypes();
	Category getCategoryById(int id);
	List<Category> createNavi(int id, int type);

	int createUser(RegisterBean register);

	List<TypeDetail> getTypeDetails();
	Cart getCart();	
	String getUserRole();

	void storeCart(Cart cart);

	void storeCartDetail(CartDetail cartdetail);

	void deleteCartDetail(int id);

	List<Tag> getAllTag();

	List<Product> getAllProductDetailByTag(String searchString);
}
